package com.lanbu.system.mapper;

import com.lanbu.system.domain.mongo.MongoTeamMembers;
import com.lanbu.system.domain.mongo.MongoTeamMembersGroups;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MongoTeamMembersGroupsRepository extends MongoRepository<MongoTeamMembersGroups, ObjectId> {
    // 你可以在这里定义自定义查询方法
    MongoTeamMembersGroups findByUserId(ObjectId userId);

    List<MongoTeamMembersGroups> findByTeamId(Object teamId);
}
